package sample.sub2.section12
import scala.collection.mutable.ArrayBuffer

class BasicIntQueue extends IntQueue {
	private val buf = new ArrayBuffer[Int];
	
	def get(): Int = { buf.remove(0); }

	def put(x: Int): Unit = { buf += x}

	def out() 
	{
		println(buf)
	}
}